package com.pwx.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Copyright (C),2021-2022,亚瑟王
 * FileName: Edoc
 * Author: saber
 * Date:2022/10/7 9:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Edoc {

   private Integer eId;
   private String title;
   private String summary;
   private Integer uId;
   private Integer typeId;
   @JSONField(format = "yyyy-MM-dd")
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date createDate;
   private User user;

   public Edoc(String title, String summary, Integer uId, Integer typeId, Date createDate) {
      this.title = title;
      this.summary = summary;
      this.uId = uId;
      this.typeId = typeId;
      this.createDate = createDate;
   }

}
